package com.heima.admin.service.impl;

import com.heima.admin.mapper.ArticleReviewMapper;
import com.heima.admin.service.ArticleReviewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleReviewServiceImpl implements ArticleReviewService {

    @Autowired
    private ArticleReviewMapper articleReviewMapper;

    /**
     * 人工审核失败
     * @param id
     * @param msg
     */
    @Override
    public void review(Integer id, String msg) {
        articleReviewMapper.review(id , msg);
    }

    /**
     * 人工审核成功
     * @param id
     */
    @Override
    public void reviewPass(Integer id) {
        articleReviewMapper.reviewPass(id);
    }
}
